package com.platform.unifiedweb.controller;

import com.platform.common.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * describe:
 *
 * @author Administrator
 * @date 2019/11/18
 * @Time 22:13
 */
@Controller
@RequestMapping(value = "/main")
public class MainController extends BaseController {

    /**
     * 主页面
     *
     * @return modelAndView
     */
    @GetMapping(value = "/index")
    public ModelAndView index() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("index");
        return modelAndView;
    }

    @GetMapping(value = "/welcome")
    public ModelAndView welcome() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("page/welcome/welcome");
        return modelAndView;
    }
}
